<template>
    <span>{{ numToView }}</span>
</template>

<script>
export default {
    name: "Numeral",
    props: {
        num: [String, Number],
        format: [String, Object],
    },
    computed: {
        numToView: function () {
            return this.$store.getters['config/filterNumeral'](this.num, this.format || {thousandSeparated: true});
        }
    },
}
</script>

<style scoped>

</style>
